<!--#include file="../appInit.aspx"-->
<!--#include file="../_user/appProduct.aspx"-->

<%
    // 配置当前目录的域名
    AppConfig.CurDomain = AppConfig.Domain + "/" + AppConfig.DirProducts;      
    
    lblProductsCatList.Text = LblProductCatList();
    lblProductsInfoList.Text = LblProductList( null,"24","" );
    
    lblBreadcrumb.Text = LblBreadcrumb();
    lblTitle.Text = LblTitle();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><asp:literal id="lblTitle" runat="server"></asp:literal> -- 冠灵家居</title>
<style>
  @import "css/global.css";
  @import "css/product.css";
</style>
</head>
<body>
  <div id="container">
    <div id="header"><!--header-->
					<!--#include file="inc.header.aspx"-->
    </div><!--//header-->
    <div id="content">
    		<div id="title"><h3>首页 > <asp:literal runat="server" id="lblBreadcrumb"></asp:literal></h3></div>
        <div id="productList">
          
          <asp:literal runat="server" id="lblProductsInfoList"></asp:literal>

        </div><!--//productList-->
    </div>
    <div id="side"><!--side-->
      <!--
      <p id="hot"><img src="images/hot.jpg"></p>
      -->
      <div id="search">
        <input id="SeachKeyWord" class="input" type="text" maxlength="12" onkeypress="keyUpdo(event);" onfocus="if(this.value=='家居') this.value='';" value="家居"/>
        <input class="btn" type="button" value="搜索"/>
      </div>
      <div id="category" class="box">
        <div class="hd">
          <h2>产品分类</h2>
          <span></span>
        </div>
        <div class="content">
            <!-- 在这里显示分类列表 -->
            <asp:literal runat="server" id="lblProductsCatList"></asp:literal>
        </div>
        <div class="ft"><span></span></div>
      </div>
      <div class="clear2"></div>
      <div id="price" class="box">
        <div class="hd">
          <h2>价格区间</h2>
          <span></span>
        </div>
        <div class="content">
            <!-- 在这里显示价格区间 -->

        </div>
        <div class="ft"><span></span></div>
      </div>
      <div class="clear2"></div>
      <div id="comment" class="box">
        <div class="hd">
          <h2>热门评论</h2>
          <span></span>
        </div>
        <div class="content">
            <!-- 在这里显示热门评论 -->
        </div>
        <div class="ft"><span></span></div>
      </div>
    </div><!--//side-->
    <div class="clear2"></div>
    <div id="footer"><!--footer-->
				<!--#include file="inc.footer.aspx"-->
    </div><!--//footer-->
  </div>


<script type="text/javascript">
    // 突出显示导航的当前项
    function navListener()
    {
        // 获取导航条对应数组
        var nav = document.getElementById("mainNav");
        nav = nav.getElementsByTagName("LI");

        // 当前元素
        //var curEl = location.search.split('&');
        var curEl = "catId="+<%=Request.QueryString["catId"]%>
        var aLink;
        var curIdx = 0;


        // 历遍 navs
        for ( var i=0; i<nav.length; i++ ){
            aLink = nav[i].getElementsByTagName("A")[0];
            aLink.className = "";

            if( -1 < nav[i].getElementsByTagName("A")[0].href.indexOf(curEl) )
            {
                aLink.className = "c";
            }

        }
    }
    navListener();
</script>
</body>
</html>